package com.vesystem.vegua.modules.common.mapper;

import com.vesystem.vegua.modules.common.entity.MappingUserApp;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.vesystem.vegua.modules.common.entity.RemoteApp;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author hcy
 * @since 2020-12-08
 */
@Repository
public interface MappingUserAppMapper extends BaseMapper<MappingUserApp> {

    Integer batchInsertMappingUserApp(@Param("userId") Integer userId,@Param("appIds") List<Integer> appIds);

    List<Integer> getAppIdsByUserId(@Param("userId") Integer userId);

    List<RemoteApp> getAppListByUserId(@Param("userId") Integer userId);

}
